package cn.itsource.ymcc.feignclient;

import cn.itsource.domain.CourseDoc;
import cn.itsource.ymcc.feignclient.fallback.EsFeignclientFallbackFactory;
import cn.itsource.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "service-search",fallbackFactory = EsFeignclientFallbackFactory.class)
public interface EsFeignClient {


    @PostMapping("/search/batchSave")
    public JsonResult batchSave(@RequestBody List<CourseDoc> docList);
}
